﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.UI;

public class HpLoseEffect : MonoBehaviour
{
	public Text t;
	// hieu ung mat mau
	public int hpLoseValue {
		set {
			
			t.text = "-" + value;
			gameObject.SetActive (true);
			transform.DOMoveY (transform.position.y + 1, 0.5F, false).SetUpdate (true).OnComplete (() => {
				gameObject.SetActive (false);
			});
		}
	}
}
